import routeComponentName from '@/config/route-component-name'

const financialRouter = [
  {
    path: '/financial',
    component: () => import('@/layout/index.vue'),
    name: 'financial',
    meta: {
      title: '资金管理',
      icon: 'Coin',
    },
    redirect: '/financial/finan',
    children: [
      {
        path: 'finan',
        component: () => import('@/views/financial/finan/index.vue'),
        name: 'Finan',
        meta: {
          title: '费用报表',
          keepAlive: true,
          componentName: routeComponentName.fundManager.feeReport,
        },
      },
      {
        path: 'balance',
        component: () => import('@/views/financial/balance/index.vue'),
        name: 'Balance',
        meta: {
          title: '应收应付',
          keepAlive: true,
          componentName: routeComponentName.fundManager.shouldCollectAndPay,
        },
      },
      {
        path: 'income',
        component: () => import('@/views/financial/income/index.vue'),
        name: 'Income',
        meta: {
          title: '收支记录',
          keepAlive: true,
          componentName: routeComponentName.fundManager.collectAndPayRecord,
        },
      },
    ],
  },
]

export default financialRouter
